<?php

namespace App\Clients\Lakala;

use Exception;
use GuzzleHttp\Exception\GuzzleException;

class MerTransSepQuerySeps extends LakalaClient
{

    public function handleData(): void
    {
        try{
            $this->contents = [
                "pageItems"=>$this->contents["data"],
                "total"=>$this->contents["total"],
            ];
        }catch(Exception $e){
            var_dump($this->contents);
            throw $e;
        }
    }

    /**
     * @throws GuzzleException
     */
    public function execute($queryData): MerTransSepQuerySeps
    {
        return $this->post("https://m2.lakala.com/m/a/lamsmerdash/merTrans/sep/querySeps",$queryData);
    }
}
